/********************************************************/
/*	Copyright (C) 2016 Gong Li Bin		 	*/
/*	Project:	GoLib-1.0.0			*/
/*	Author:		gong_libin			*/
/*	Date:		2016_01_01			*/
/*	File:		GoIdxTest.go			*/
/********************************************************/

package main

import (
	. "GoGlb"
	C "GoCls"
)

var s string = "Copyright (C) 2016 Gong Li Bin		"

func main() {
	m := new(C.GoMd5)
	b := m.GoMd5Sum([]byte(s))
	GoPrtHx(0, len(b), b)
	GoPrint("UINT32: %d\n", C.GoIdxUint32(b))
	GoPrint("UINT64: %d\n", C.GoIdxUint64(b))

	h := new(C.GoSha)
	d := h.GoShaSum([]byte(s))
	GoPrtHx(0, len(d), d)
	GoPrint("UINT32: %d\n", C.GoIdxUint32(d))
	GoPrint("UINT64: %d\n", C.GoIdxUint64(d))
}
